import request from '@/utils/request'
const BASE_URL = '/back'
// 分页查询
export function getBackPageList(data) {
  return request({
    url: BASE_URL + '/getBackPageList',
    method: 'post',
    data
  })
}
// 仓库列表下拉
export function getDepotList(params) {
  return request({
    url: BASE_URL + '/getBackList',
    method: 'post',
    params
  })
}

// 查询
export function getBackDetail(params) {
  return request({
    url: BASE_URL + '/getBackDetail',
    method: 'post',
    params
  })
}

// 新增
export function addDepot(data) {
  return request({
    url: BASE_URL + '/addDepot',
    method: 'post',
    data
  })
}

// 详情
export function getDepotInfo(data) {
  return request({
    url: BASE_URL + '/getDepotInfo',
    method: 'post',
    data
  })
}
